package com.hy.mydesktop.shared.persistence.domain;



import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import net.sf.gilead.pojo.java5.legacy.LightEntity;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
import com.hy.mydesktop.shared.persistence.domain.util.Persistable;
import com.hy.mydesktop.shared.persistence.domain.util.StringIdentifier;

@Entity
@Table(name="user")
public class User extends MyBaseModel {//,BeanModelTag{
//	public class User extends LightEntity {//,BeanModelTag{

	@Id
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public User() {
		super();
	}
	private String id;
	private String name;
	//private int age;
	
	//private Date birth;
	
	/*@Temporal(TemporalType.DATE)
	public Date getBirth() {
		return get("birth");
	}
	public void setBirth(Date birth) {
		set("birth", birth);
	}*/
	//@Id//@GeneratedValue
	/*public String getId() {
		return getIdentifier();
	}
	public void setId(String id) {
		setIdentifier(id);
	}*/
	
	/*@Column(length=32,nullable=false)
	public String getName() {
		return get("name");
	}
	public void setName(String name) {
		set("name", name);
	}
	
	@Column(length=2,nullable=true)

	public int getAge() {
		return super.get("age",0);
	}
	public void setAge(int age) {
		super.set("age", age);
	}*/
}
